<%@ page import="evol.Odgovor" %>



<div class="fieldcontain ${hasErrors(bean: odgovorInstance, field: 'datum', 'error')} required">
	<label for="datum">
		<g:message code="odgovor.datum.label" default="Datum" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="datum" precision="day"  value="${odgovorInstance?.datum}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: odgovorInstance, field: 'idDo', 'error')} required">
	<label for="idDo">
		<g:message code="odgovor.idDo.label" default="Id Do" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="idDo" name="idDo.id" from="${evol.Predmet.list()}" optionKey="id" required="" value="${odgovorInstance?.idDo?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: odgovorInstance, field: 'idOd', 'error')} required">
	<label for="idOd">
		<g:message code="odgovor.idOd.label" default="Id Od" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="idOd" name="idOd.id" from="${evol.Predmet.list()}" optionKey="id" required="" value="${odgovorInstance?.idOd?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: odgovorInstance, field: 'indeks', 'error')} required">
	<label for="indeks">
		<g:message code="odgovor.indeks.label" default="Indeks" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="indeks" step="any" min="0.0" max="1.0" required="" value="${odgovorInstance.indeks}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: odgovorInstance, field: 'korisnik', 'error')} ">
	<label for="korisnik">
		<g:message code="odgovor.korisnik.label" default="Korisnik" />
		
	</label>
	<g:textField name="korisnik" value="${odgovorInstance?.korisnik}"/>
</div>

